package cn.hchaojie.camp.day02;

public class DemoDice {
	public static void main(String[] args) {
		
		int dice1 = 0;
		int dice2 = 0;
		
		int count = 0;
		
		while (!(dice1 == 6 && dice2 == 6)) {	// 两个同时为6，循环终止
			dice1 = (int) (Math.random() * 6 + 1);
			dice2 = (int) (Math.random() * 6 + 1);
			
			System.out.println(dice1 + "/" + dice2);
			
			count++;
		}
		
		System.out.println("扔了多少次：" + count);
		
//		while (dice1 != 6 || dice2 != 6) {
//			
//		}
		
	}
}
